<p><a href="index.php?m=account&a=add" onclick="showWindow('addaccount', this.href, 'get', 1, {'cover':'1'}); return false;">添加账户</a></p>
<table style="width:100%;" class="data">
<tr><th>AccountName</th><th>TotalAssets</th><th>AccountTypeName</th><th>Bank</th><th>Status</th><th>CreateDate</th><th>Remark</th><th>OPT</th></tr>
<?php foreach($this->AccountList as $k=>$v):?>
<tr>
<td><?php echo $v['AccountName']?>&nbsp;</td>
<td><?php echo $v['TotalAssets']?>&nbsp;</td>
<td><?php echo $v['AccountTypeName']?>&nbsp;</td>
<td><?php echo $v['BankName']?>&nbsp;</td>
<td><?php echo $v['Status'] == 1 ? '启用' : '注销'?>&nbsp;</td>
<td><?php echo date('Y-m-d', $v['CreateDate'])?>&nbsp;</td>
<td><?php echo $v['Remark']?>&nbsp;</td>
<td>
<a href="?m=account&a=edit&aid=<?php echo $v['AID']?>">编辑</a> |
<?php if($v['Status'] == 1):?>
<a href="?m=account&a=cancel&aid=<?php echo $v['AID']?>">注销</a>
<?php else:?>
<a href="?m=account&a=restore&aid=<?php echo $v['AID']?>">启用</a>
<?php endif;?>
<?php if($v['Status'] == 1):?>
 | <a href="?m=account&a=adj&aid=<?php echo $v['AID']?>">余额调整</a>
<?php endif;?>
</td>
</tr>
<?php endforeach;?>
</table>